<?php
/**
 * 控制器基类
 */
 class Controller
 {
 	protected $_controller;
    protected $_action;
    protected $_view;
	
	// 构造函数，初始化属性，并实例化对应模型
	public function __construct($controller, $action)
    {
        $this->_controller = $controller;
        $this->_action = $action;
        $this->_view = new View($controller, $action);
    }

    // 渲染视图 ,分配变量
    public function render($view_name = '',$param = array())
    {
        $this->_view->render($view_name,$param);
    }
 }
?>